<template>
	<view class="container">
		<view class="box-1">
			<view class="my">
				<view class="left">
					2024年05月累计收益
				</view>
				<view class="right" :style="{color:type==1 ? '#E72A2A' : type==2 ? '#FFCC26' : '#000000'}">
					{{type==1 ? '未结算' : type==2 ? '待结算' : '已结算'}}
				</view>
			</view>
			<view class="ing">
				<view class="i">
					<view class="num">
						<text>￥</text>1000.00
					</view>
					<text>服务收益</text>
				</view>
				<view class="i">
					<view class="num">
						<text>￥</text>1000.00
					</view>
					<text>商品收益</text>
				</view>
			</view>
		</view>
		
		<view class="box-2">
			<view class="item">
				<view class="left">
					<view class="name">
						医护服务名称
					</view>
					<text>2024-05-20 13：00</text>
				</view>
				<text>+￥15.00</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type:null
			};
		},
		onLoad(data) {
			this.type = data.type
		}
	}
</script>
<style>
	page{
		background-color: #FFFFFF;
	}
</style>
<style lang="scss" scoped>
.container{
	.box-1{
		padding: 0 22rpx;
		box-sizing: border-box;
		background-color: #FFFFFF;
		.my{
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 40rpx 0 34rpx;
			box-sizing: border-box;
			.left{
				font-weight: 400;
				font-size: 32rpx;
				color: #000000;
				line-height: 44rpx;
			}
				
			.right{
				font-weight: 400;
				font-size: 32rpx;
				line-height: 44rpx;
			}
		}
		.ing{
			display: flex;
			align-items: center;
			justify-content: space-around;
			padding: 40rpx 0;
			// border-top: 2rpx solid #EEEEEE;
			.i{
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				&>text{
					font-weight: bold;
					font-size: 28rpx;
					color: #333333;
					line-height: 40rpx;
					margin-top: 4rpx;
				}
				.num{
					font-weight: bold;
					font-size: 52rpx;
					color: #000000;
					line-height: 74rpx;
					text{
						font-size: 32rpx;
					}
				}
			}
		}
	}
	
	.box-2{
		border-top: 20rpx solid #EEEEEE;
		.item{
			padding: 20rpx 22rpx 22rpx;
			box-sizing: border-box;
			border-bottom: 2rpx solid #EEEEEE;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.left{
				.name{
					font-weight: bold;
					font-size: 32rpx;
					color: #000000;
					line-height: 44rpx;
				}
				text{
					font-weight: 400;
					font-size: 28rpx;
					color: #818181;
					line-height: 40rpx;
					margin-top: 8rpx;
				}
			}
			&>text{
				font-weight: bold;
				font-size: 32rpx;
				color: #E72A2A;
				line-height: 44rpx;
			}
		}
	}
}
</style>
